<script setup lang="ts">
import api from '@/api'

definePage({
  meta: {
    title: '首页',
  },
})

const dataList = ref({})

function getDataList() {
  api.get('/5a/list').then((res) => {
    dataList.value = res.data
  })
}

onBeforeMount(() => {
})
onMounted(() => {
  getDataList()
})

onBeforeUpdate(() => {
})
onUpdated(() => {
})

onBeforeUnmount(() => {
})
onUnmounted(() => {
})
</script>

<template>
  <FmPageLayout :navbar="false" tabbar>
    <FmCard style="margin: 20px;height: 100%">
      <div v-for="l in dataList">
        {{ l.name }}
      </div>
    </FmCard>
  </FmPageLayout>
</template>
